count=0

for a in range(1,20):
    for b in range(1,33):
        c=100-a-b
        if c>0 and 5*a+3*b+c/3==100:
            count +=1
            print(f'有{count}种买法，公鸡买了{a} 母鸡买了{b} 小鸡买了{c}')